<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改采购申报实体')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-procurementdeclare-edit" th:object="${sysProcurementdeclare}">
            <input name="procurementDeclareId" th:field="*{procurementDeclareId}" type="hidden">
            <input name="purchasingUnitId" th:field="*{purchasingUnitId}" class="form-control" type="hidden">

            <div class="form-group">    
                <label class="col-sm-3 control-label">项目名称：</label>
                <div class="col-sm-8">
                    <input name="projectName" th:field="*{projectName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">项目编号：</label>
                <div class="col-sm-8">
                    <input name="projectNumber" th:field="*{projectNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单位名称：</label>
                <div class="col-sm-8">
                    <input name="unitName" th:field="*{unitName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系人：</label>
                <div class="col-sm-8">
                    <input name="contactName" th:field="*{contactName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">固定电话：</label>
                <div class="col-sm-8">
                    <input name="tel" th:field="*{tel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">手机号：</label>
                <div class="col-sm-8">
                    <input name="mobilePhone" th:field="*{mobilePhone}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">计划资金：</label>
                <div class="col-sm-8">
                    <input name="expectMoney" th:field="*{expectMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">所属计划：</label>
                <div class="col-sm-8">

                    <select id="purchasePlanId" name="purchasePlanId" class="form-control"  >
                        <option  th:each="sysPurchaseplan:${sysPurchaseplanList}" th:value="${sysPurchaseplan.purchasePlanId}" th:text="${sysPurchaseplan.title}" <!--th:if="*{expectMoney}= ${sysPurchaseplan.purchasePlanId}" th:selected="selected"-->></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/procurementdeclare";
        $("#form-procurementdeclare-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-procurementdeclare-edit').serialize());
            }
        }
    </script>
</body>
</html>